package utils;

/**
 * Created by YT on 2015/8/21.
 */
public class Test01  extends ClassLoader{

    public static void main(String[] args) {

        try {
            Class<?> clazz = getSystemClassLoader().loadClass("utils.B");
            System.out.print(clazz.getSimpleName());
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}



//
class  B extends ClassLoader {
    @Override
    protected Class<?> findClass(String name) throws ClassNotFoundException {
        return super.findClass(name);
    }
}

